package com.gw.yunke.service;

import com.gw.yunke.domain.User;
import com.gw.yunke.domain.dto.UserReq;
import com.gw.yunke.domain.dto.UserSimpleInfo;

import java.util.List;

public interface IUserService {

    User getUserInfoByToken(String token) throws Exception;

    User getUserById(Long userId);

    List<User> getUserByExample(UserReq req);

    int saveUser(User user);

    int updateUser(User user);

    int checkLogin(String token,User user) throws Exception;

    UserSimpleInfo buildUserSimpleInfo(User user);

    boolean checkCreatePermission(User user,Long courseId);
}
